package com.company.project.service;
import com.company.project.model.User;
import com.company.project.model.UserRole;
import com.company.project.core.Service;


/**
 * Created by CodeGenerator on 2018/10/08.
 */
public interface UserRoleService extends Service<UserRole> {
    /**
     * 修改用户角色
     * @return
     */
    Boolean upUserRole(User user);

    /**
     * 添加用户和角色
     * @param user
     * @return
     */
    Boolean insertUserRole(User user);

    /**
     * 删除角色
     * @return
     */
    Boolean deleteUserRole(Integer id);

    /**
     * 查询当前权限下用户的数量
     * @param rid
     * @return
     */
    Integer selectURCount(Integer rid);

}
